/**
 * Copyright© 2003-2019 浙江汇信科技有限公司, All Rights Reserved. <br/>
 */
package com.icinfo.cloud.provider.punish.ucase.casemain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 描述: 文书内容暂存表 case_temporary_record 对应的实体类.<br>
 * WARNING：不是表中字段的属性必须加@Transient注解
 * @author framework generator
 * @date 2022年03月24日
 */
@Data
@Table(name = "upcase.case_temporary_record")
public class CaseTemporaryRecord implements Serializable {
    @Id
    @Column(name = "id")
    private String id;

    /**
     * 案件id
     */
    @Column(name = "case_id")
    private String caseId;

    /**
     * 文书目录编号
     */
    @Column(name = "document_catalog_code")
    private String documentCatalogCode;

    /**
     * 暂存内容
     */
    @Column(name = "content")
    private String content;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    /**
     * 添加人
     */
    @Column(name = "add_user")
    private String addUser;

    /**
     * 当事人id
     */
    @Column(name = "party_id")
    private String partyId;

    /**
     * 是否自动保存0:否1:是(移动端使用)
     */
    @Column(name = "is_auto_save")
    private String isAutoSave;

    /**
     * 数据来源方业务唯一主键id
     */
    @Column(name = "data_source_service_id")
    private String dataSourceServiceId;

    /**
     * 数据来源(数据字典-ApiVisitDataSourceEnum)
     */
    @Column(name = "data_source")
    private String dataSource;

    /**
     * 机构号
     */
    @Column(name = "org_code")
    private String orgCode;


    /**
     * 事项分类标记事项分类标记(法定事项-1;赋权事项(通用事项-2；自选事项-3);委托事项)
     */
    @Column(name = "sx_type")
    private String sxType;

    /**
     * 委托部门编码
     */
    @Column(name = "client_org_code")
    private String clientOrgCode;

    /**
     * 委托部门名称
     */
    @Column(name = "client_org_name")
    private String clientOrgName;

    /**
     * 委托部门-区域编码
     */
    @Column(name = "area_code")
    private String areaCode;

    /**
     * 委托部门-条线编码
     */
    @Column(name = "client_line_code")
    private String clientLineCode;

    private static final long serialVersionUID = 1L;
}